Optimal. Leaf size=110 \[ -\frac {\sqrt {d+e x}}{2 b (a+b x)^2}-\frac {e \sqrt {d+e x}}{4 b (b d-a e) (a+b x)}+\frac {e^2 \tanh ^{-1}\left (\frac {\sqrt {b} \sqrt {d+e x}}{\sqrt {b d-a e}}\right )}{4 b^{3/2} (b d-a e)^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 110, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.152, Rules used = {27, 43, 44, 65,
214} \begin {gather*} \frac {e^2 \tanh ^{-1}\left (\frac {\sqrt {b} \sqrt {d+e x}}{\sqrt {b d-a e}}\right )}{4 b^{3/2} (b d-a e)^{3/2}}-\frac {e \sqrt {d+e x}}{4 b (a+b x) (b d-a e)}-\frac {\sqrt {d+e x}}{2 b (a+b x)^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 27
Rule 43
Rule 44
Rule 65
Rule 214
Rubi steps
\begin {align*} \int \frac {(a+b x) \sqrt {d+e x}}{\left (a^2+2 a b x+b^2 x^2\right )^2} \, dx &=\int \frac {\sqrt {d+e x}}{(a+b x)^3} \, dx\\ &=-\frac {\sqrt {d+e x}}{2 b (a+b x)^2}+\frac {e \int \frac {1}{(a+b x)^2 \sqrt {d+e x}} \, dx}{4 b}\\ &=-\frac {\sqrt {d+e x}}{2 b (a+b x)^2}-\frac {e \sqrt {d+e x}}{4 b (b d-a e) (a+b x)}-\frac {e^2 \int \frac {1}{(a+b x) \sqrt {d+e x}} \, dx}{8 b (b d-a e)}\\ &=-\frac {\sqrt {d+e x}}{2 b (a+b x)^2}-\frac {e \sqrt {d+e x}}{4 b (b d-a e) (a+b x)}-\frac {e \text {Subst}\left (\int \frac {1}{a-\frac {b d}{e}+\frac {b x^2}{e}} \, dx,x,\sqrt {d+e x}\right )}{4 b (b d-a e)}\\ &=-\frac {\sqrt {d+e x}}{2 b (a+b x)^2}-\frac {e \sqrt {d+e x}}{4 b (b d-a e) (a+b x)}+\frac {e^2 \tanh ^{-1}\left (\frac {\sqrt {b} \sqrt {d+e x}}{\sqrt {b d-a e}}\right )}{4 b^{3/2} (b d-a e)^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.10, size = 99, normalized size = 0.90 \begin {gather*} \frac {\frac {\sqrt {b} \sqrt {d+e x} (2 b d-a e+b e x)}{(-b d+a e) (a+b x)^2}+\frac {e^2 \tan ^{-1}\left (\frac {\sqrt {b} \sqrt {d+e x}}{\sqrt {-b d+a e}}\right )}{(-b d+a e)^{3/2}}}{4 b^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.04, size = 106, normalized size = 0.96
method | result | size |
derivativedivides | \(2 e^{2} \left (\frac {\frac {\left (e x +d \right )^{\frac {3}{2}}}{8 a e -8 b d}-\frac {\sqrt {e x +d}}{8 b}}{\left (b \left (e x +d \right )+a e -b d \right )^{2}}+\frac {\arctan \left (\frac {b \sqrt {e x +d}}{\sqrt {\left (a e -b d \right ) b}}\right )}{8 \left (a e -b d \right ) b \sqrt {\left (a e -b d \right ) b}}\right )\) | \(106\) |
default | \(2 e^{2} \left (\frac {\frac {\left (e x +d \right )^{\frac {3}{2}}}{8 a e -8 b d}-\frac {\sqrt {e x +d}}{8 b}}{\left (b \left (e x +d \right )+a e -b d \right )^{2}}+\frac {\arctan \left (\frac {b \sqrt {e x +d}}{\sqrt {\left (a e -b d \right ) b}}\right )}{8 \left (a e -b d \right ) b \sqrt {\left (a e -b d \right ) b}}\right )\) | \(106\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 218 vs.
\(2 (96) = 192\).
time = 2.03, size = 451, normalized size = 4.10 \begin {gather*} \left [-\frac {{\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )} \sqrt {b^{2} d - a b e} e^{2} \log \left (\frac {2 \, b d + {\left (b x - a\right )} e - 2 \, \sqrt {b^{2} d - a b e} \sqrt {x e + d}}{b x + a}\right ) + 2 \, {\left (2 \, b^{3} d^{2} - {\left (a b^{2} x - a^{2} b\right )} e^{2} + {\left (b^{3} d x - 3 \, a b^{2} d\right )} e\right )} \sqrt {x e + d}}{8 \, {\left (b^{6} d^{2} x^{2} + 2 \, a b^{5} d^{2} x + a^{2} b^{4} d^{2} + {\left (a^{2} b^{4} x^{2} + 2 \, a^{3} b^{3} x + a^{4} b^{2}\right )} e^{2} - 2 \, {\left (a b^{5} d x^{2} + 2 \, a^{2} b^{4} d x + a^{3} b^{3} d\right )} e\right )}}, -\frac {{\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )} \sqrt {-b^{2} d + a b e} \arctan \left (\frac {\sqrt {-b^{2} d + a b e} \sqrt {x e + d}}{b x e + b d}\right ) e^{2} + {\left (2 \, b^{3} d^{2} - {\left (a b^{2} x - a^{2} b\right )} e^{2} + {\left (b^{3} d x - 3 \, a b^{2} d\right )} e\right )} \sqrt {x e + d}}{4 \, {\left (b^{6} d^{2} x^{2} + 2 \, a b^{5} d^{2} x + a^{2} b^{4} d^{2} + {\left (a^{2} b^{4} x^{2} + 2 \, a^{3} b^{3} x + a^{4} b^{2}\right )} e^{2} - 2 \, {\left (a b^{5} d x^{2} + 2 \, a^{2} b^{4} d x + a^{3} b^{3} d\right )} e\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 1658 vs.
\(2 (88) = 176\).
time = 121.98, size = 1658, normalized size = 15.07 \begin {gather*} - \frac {10 a^{2} e^{4} \sqrt {d + e x}}{8 a^{4} b e^{4} - 16 a^{3} b^{2} d e^{3} + 16 a^{3} b^{2} e^{4} x - 48 a^{2} b^{3} d e^{3} x + 8 a^{2} b^{3} e^{2} \left (d + e x\right )^{2} + 16 a b^{4} d^{3} e + 48 a b^{4} d^{2} e^{2} x - 16 a b^{4} d e \left (d + e x\right )^{2} - 8 b^{5} d^{4} - 16 b^{5} d^{3} e x + 8 b^{5} d^{2} \left (d + e x\right )^{2}} + \frac {20 a d e^{3} \sqrt {d + e x}}{8 a^{4} e^{4} - 16 a^{3} b d e^{3} + 16 a^{3} b e^{4} x - 48 a^{2} b^{2} d e^{3} x + 8 a^{2} b^{2} e^{2} \left (d + e x\right )^{2} + 16 a b^{3} d^{3} e + 48 a b^{3} d^{2} e^{2} x - 16 a b^{3} d e \left (d + e x\right )^{2} - 8 b^{4} d^{4} - 16 b^{4} d^{3} e x + 8 b^{4} d^{2} \left (d + e x\right )^{2}} - \frac {6 a e^{3} \left (d + e x\right )^{\frac {3}{2}}}{8 a^{4} e^{4} - 16 a^{3} b d e^{3} + 16 a^{3} b e^{4} x - 48 a^{2} b^{2} d e^{3} x + 8 a^{2} b^{2} e^{2} \left (d + e x\right )^{2} + 16 a b^{3} d^{3} e + 48 a b^{3} d^{2} e^{2} x - 16 a b^{3} d e \left (d + e x\right )^{2} - 8 b^{4} d^{4} - 16 b^{4} d^{3} e x + 8 b^{4} d^{2} \left (d + e x\right )^{2}} + \frac {3 a e^{3} \sqrt {- \frac {1}{b \left (a e - b d\right )^{5}}} \log {\left (- a^{3} e^{3} \sqrt {- \frac {1}{b \left (a e - b d\right )^{5}}} + 3 a^{2} b d e^{2} \sqrt {- \frac {1}{b \left (a e - b d\right )^{5}}} - 3 a b^{2} d^{2} e \sqrt {- \frac {1}{b \left (a e - b d\right )^{5}}} + b^{3} d^{3} \sqrt {- \frac {1}{b \left (a e - b d\right )^{5}}} + \sqrt {d + e x} \right )}}{8 b} - \frac {3 a e^{3} \sqrt {- \frac {1}{b \left (a e - b d\right )^{5}}} \log {\left (a^{3} e^{3} \sqrt {- \frac {1}{b \left (a e - b d\right )^{5}}} - 3 a^{2} b d e^{2} \sqrt {- \frac {1}{b \left (a e - b d\right )^{5}}} + 3 a b^{2} d^{2} e \sqrt {- \frac {1}{b \left (a e - b d\right )^{5}}} - b^{3} d^{3} \sqrt {- \frac {1}{b \left (a e - b d\right )^{5}}} + \sqrt {d + e x} \right )}}{8 b} - \frac {10 b d^{2} e^{2} \sqrt {d + e x}}{8 a^{4} e^{4} - 16 a^{3} b d e^{3} + 16 a^{3} b e^{4} x - 48 a^{2} b^{2} d e^{3} x + 8 a^{2} b^{2} e^{2} \left (d + e x\right )^{2} + 16 a b^{3} d^{3} e + 48 a b^{3} d^{2} e^{2} x - 16 a b^{3} d e \left (d + e x\right )^{2} - 8 b^{4} d^{4} - 16 b^{4} d^{3} e x + 8 b^{4} d^{2} \left (d + e x\right )^{2}} + \frac {6 b d e^{2} \left (d + e x\right )^{\frac {3}{2}}}{8 a^{4} e^{4} - 16 a^{3} b d e^{3} + 16 a^{3} b e^{4} x - 48 a^{2} b^{2} d e^{3} x + 8 a^{2} b^{2} e^{2} \left (d + e x\right )^{2} + 16 a b^{3} d^{3} e + 48 a b^{3} d^{2} e^{2} x - 16 a b^{3} d e \left (d + e x\right )^{2} - 8 b^{4} d^{4} - 16 b^{4} d^{3} e x + 8 b^{4} d^{2} \left (d + e x\right )^{2}} - \frac {3 d e^{2} \sqrt {- \frac {1}{b \left (a e - b d\right )^{5}}} \log {\left (- a^{3} e^{3} \sqrt {- \frac {1}{b \left (a e - b d\right )^{5}}} + 3 a^{2} b d e^{2} \sqrt {- \frac {1}{b \left (a e - b d\right )^{5}}} - 3 a b^{2} d^{2} e \sqrt {- \frac {1}{b \left (a e - b d\right )^{5}}} + b^{3} d^{3} \sqrt {- \frac {1}{b \left (a e - b d\right )^{5}}} + \sqrt {d + e x} \right )}}{8} + \frac {3 d e^{2} \sqrt {- \frac {1}{b \left (a e - b d\right )^{5}}} \log {\left (a^{3} e^{3} \sqrt {- \frac {1}{b \left (a e - b d\right )^{5}}} - 3 a^{2} b d e^{2} \sqrt {- \frac {1}{b \left (a e - b d\right )^{5}}} + 3 a b^{2} d^{2} e \sqrt {- \frac {1}{b \left (a e - b d\right )^{5}}} - b^{3} d^{3} \sqrt {- \frac {1}{b \left (a e - b d\right )^{5}}} + \sqrt {d + e x} \right )}}{8} + \frac {2 e^{2} \sqrt {d + e x}}{2 a^{2} b e^{2} - 2 a b^{2} d e + 2 a b^{2} e^{2} x - 2 b^{3} d e x} - \frac {e^{2} \sqrt {- \frac {1}{b \left (a e - b d\right )^{3}}} \log {\left (- a^{2} e^{2} \sqrt {- \frac {1}{b \left (a e - b d\right )^{3}}} + 2 a b d e \sqrt {- \frac {1}{b \left (a e - b d\right )^{3}}} - b^{2} d^{2} \sqrt {- \frac {1}{b \left (a e - b d\right )^{3}}} + \sqrt {d + e x} \right )}}{2 b} + \frac {e^{2} \sqrt {- \frac {1}{b \left (a e - b d\right )^{3}}} \log {\left (a^{2} e^{2} \sqrt {- \frac {1}{b \left (a e - b d\right )^{3}}} - 2 a b d e \sqrt {- \frac {1}{b \left (a e - b d\right )^{3}}} + b^{2} d^{2} \sqrt {- \frac {1}{b \left (a e - b d\right )^{3}}} + \sqrt {d + e x} \right )}}{2 b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.13, size = 132, normalized size = 1.20 \begin {gather*} -\frac {\arctan \left (\frac {\sqrt {x e + d} b}{\sqrt {-b^{2} d + a b e}}\right ) e^{2}}{4 \, {\left (b^{2} d - a b e\right )} \sqrt {-b^{2} d + a b e}} - \frac {{\left (x e + d\right )}^{\frac {3}{2}} b e^{2} + \sqrt {x e + d} b d e^{2} - \sqrt {x e + d} a e^{3}}{4 \, {\left (b^{2} d - a b e\right )} {\left ({\left (x e + d\right )} b - b d + a e\right )}^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.10, size = 135, normalized size = 1.23 \begin {gather*} \frac {e^2\,\mathrm {atan}\left (\frac {\sqrt {b}\,\sqrt {d+e\,x}}{\sqrt {a\,e-b\,d}}\right )}{4\,b^{3/2}\,{\left (a\,e-b\,d\right )}^{3/2}}-\frac {\frac {e^2\,\sqrt {d+e\,x}}{4\,b}-\frac {e^2\,{\left (d+e\,x\right )}^{3/2}}{4\,\left (a\,e-b\,d\right )}}{b^2\,{\left (d+e\,x\right )}^2-\left (2\,b^2\,d-2\,a\,b\,e\right )\,\left (d+e\,x\right )+a^2\,e^2+b^2\,d^2-2\,a\,b\,d\,e} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________